import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/view/Login/Login'
import Home from '@/view/Home'
import SysConfig from '@/view/system/SysConfig'
import ParamConfig from '@/view/system/ParamConfig'
import CmbCity from '@/view/cmb/CmbCity'
import SysConfigDetail from '@/view/system/Detail.vue'
import '@/assets/icon/iconfont.css'

Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/login',
      name: 'Login',
      component: Login,
      hidden: true
    },
    {
      path: '/',
      component: Home,
      name: '其他设置',
      iconCls: 'iconfont icon-fuwuqi',//图标样式class
      children: [
        { 
          path: '/baseInfo', 
          component: SysConfig, 
          name: '基本配置'
        },
        { 
          path: '/paramInfo', 
          component: SysConfig, 
          name: '参数配置'
        },
        { 
          path: '/connectiNFO', 
          component: SysConfig, 
          name: '连接配置'
        }
      ]
    },
    {
      path: '/',
      component: Home,
      name: '其他配置',
      iconCls: 'iconfont icon-qitafuwu',//图标样式class
      children: [
        { 
          path: '/cmbCity', 
          component: CmbCity, 
          name: '招商城市管理'
        }
      ]
    },
    {
      path: '/',
      component: Home,
      name: '系统设置',
      iconCls: 'el-icon-setting',//图标样式class
      children: [
          { 
            path: '/sysConfig', 
            component: SysConfig, 
            name: '应用配置'
          },
          { 
            path: '/paramConfig',
            component: ParamConfig, 
            name: '参数设置'
          },
          { 
            path: '/frontConfig',
            components:'',
            name:'前置机连接设置'
          },
          { 
            path: '/SysConfigDetail/:id',
            component: SysConfigDetail,
            hidden: true,
            name:  '参数详情'
          }

      ]
  },
  ]
})
